package List;

import List.MyArrayList;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        IList iList=new MyArrayList();//向上转型
        System.out.println(iList.size());
        System.out.println(myArrayList.usedSize);
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();
        System.out.println();
        myArrayList.add(2,15);
        myArrayList.display();
        System.out.println();
        myArrayList.add(2,115);
        //myArrayList.add(8,19);
        myArrayList.display();
        myArrayList.add(-1,-1);
    }

}
